{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "b9b13625",
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "d444f3a3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'E:\\\\pycharm_out\\\\yufa\\\\git_test'"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.abspath(\"\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "711d12e5",
   "metadata": {},
   "outputs": [
    {
     "ename": "TypeError",
     "evalue": "abspath() missing 1 required positional argument: 'path'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m~\\AppData\\Local\\Temp/ipykernel_11204/4242618696.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mos\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mabspath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mTypeError\u001b[0m: abspath() missing 1 required positional argument: 'path'"
     ]
    }
   ],
   "source": [
    "os.path.abspath()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "id": "8e957483",
   "metadata": {},
   "outputs": [],
   "source": [
    "dir_path = os.path.abspath('')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "b76094c2",
   "metadata": {},
   "outputs": [],
   "source": [
    "file_path = os.path.join(dir_path, 'try.ipynb')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "9b55bf0d",
   "metadata": {},
   "outputs": [],
   "source": [
    "split_path = os.path.split(file_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "8eab86ae",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('E:\\\\pycharm_out\\\\yufa\\\\git_test', 'try.ipynb')"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "split_path"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "6f61ea82",
   "metadata": {},
   "outputs": [],
   "source": [
    "split_path1 = os.path.split(os.path.abspath(''))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "6f31467e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('E:\\\\pycharm_out\\\\yufa', 'git_test')"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "split_path1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "84e76ead",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'E:\\\\pycharm_out\\\\yufa'"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "split_path1[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "5f4ec993",
   "metadata": {},
   "outputs": [],
   "source": [
    "dir_path1,file_fullname1 = os.path.split(os.path.abspath(''))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "65837a9c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'git_test'"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "file_name1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "1f341a82",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'E:\\\\pycharm_out\\\\yufa'"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dir_path1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "b70ef0af",
   "metadata": {},
   "outputs": [],
   "source": [
    "dir_path2,file_fullname1 = os.path.split(file_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "8547e106",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "E:\\pycharm_out\\yufa\\git_test try.ipynb\n"
     ]
    }
   ],
   "source": [
    "print(dir_path2,file_fullname1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "6112f3f7",
   "metadata": {},
   "outputs": [],
   "source": [
    "file_fullname2 = os.path.splitext(file_fullname1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "4257e5d6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('try', '.ipynb')"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "file_fullname2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "e8b83fd5",
   "metadata": {},
   "outputs": [],
   "source": [
    "file_fullname3 = os.path.splitext(file_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "31201b72",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('E:\\\\pycharm_out\\\\yufa\\\\git_test\\\\try', '.ipynb')"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "file_fullname3"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "95222234",
   "metadata": {},
   "outputs": [],
   "source": [
    "file_fullname4 = os.path.splitext(dir_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "5087e602",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('E:\\\\pycharm_out\\\\yufa\\\\git_test', '')"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "file_fullname4"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "1d2d69cb",
   "metadata": {},
   "outputs": [],
   "source": [
    "path = r'E:\\pycharm_out\\yufa'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "5f2378ee",
   "metadata": {},
   "outputs": [],
   "source": [
    "f_path = os.path.join(path,'git_test','test.ipynb')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "82341dce",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'E:\\\\pycharm_out\\\\yufa\\\\git_test\\\\test.ipynb'"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "f_path\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "id": "e1a6f393",
   "metadata": {},
   "outputs": [],
   "source": [
    "cgtw_path = r'\\\\192.168.1.239\\cgteamwork4'\n",
    "project_name = 'HYX'\n",
    "work_name  = 'Asset_work'\n",
    "pipeline = 'Rig'\n",
    "asset_name = 'HYX_pro_jinyuzhuizongshu'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "id": "6663d771",
   "metadata": {},
   "outputs": [],
   "source": [
    "dir_path1 = os.path.join(cgtw_path,project_name,work_name,pipeline,asset_name)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "id": "786b779a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'\\\\\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu'"
      ]
     },
     "execution_count": 71,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dir_path1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "id": "e5feedc1",
   "metadata": {},
   "outputs": [],
   "source": [
    "f_path = os.path.join(dir_path1,'HYX_pro_jinyuzhuizongshu_rig_v001.mb')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "id": "7b48f433",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu\\\\HYX_pro_jinyuzhuizongshu_rig_v001.mb'"
      ]
     },
     "execution_count": 67,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "f_path"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "id": "941e8102",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'E:\\\\pycharm_out\\\\yufa'"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.dirname(r'E:\\pycharm_out\\yufa\\git_test')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "id": "2bd1e234",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu'"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.dirname(f_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "id": "2a84f5f4",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 73,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.exists(f_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "id": "75e2b30d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.exists(r'\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu\\\\HYX_pro_jinyuzhuizongshu_rig_v001.mb')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "id": "ca46c5c6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 53,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.exists(r'\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu\\\\HYX_pro_jinyuzhuizongshu_rig_v001.mb')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "698c336e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.exists(f_path.replace('\\\\','/'))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "id": "cf1e023f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.exists(f_path.replace('/','\\\\'))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "58d78052",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.exists(os.path.dirname(f_path))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "d5e771e4",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu'"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.dirname(f_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "id": "c14f30cf",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.exists(r'\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "id": "175d8759",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu\\\\HYX_pro_jinyuzhuizongshu_rig_v001.mb'"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "f_path"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "id": "abbcfa87",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "True\n"
     ]
    }
   ],
   "source": [
    "f_path= r'\\\\192.168.1.239\\\\cgteamwork4\\\\HYX\\\\Asset_work\\\\Rig\\\\HYX_pro_jinyuzhuizongshu\\\\HYX_pro_jinyuzhuizongshu_rig_v001.mb'\n",
    "\n",
    "r = os.path.exists(f_path)\n",
    "print(r)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "id": "2a212fe8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'\\\\\\\\192.168.1.239\\\\\\\\cgteamwork4\\\\\\\\HYX\\\\\\\\Asset_work\\\\\\\\Rig\\\\\\\\HYX_pro_jinyuzhuizongshu\\\\\\\\HYX_pro_jinyuzhuizongshu_rig_v001.mb'"
      ]
     },
     "execution_count": 64,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "f_path"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "id": "9755a281",
   "metadata": {},
   "outputs": [],
   "source": [
    "dir_path5 = os.path.abspath('')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "id": "3e1cd0b4",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'E:\\\\pycharm_out\\\\yufa\\\\git_test'"
      ]
     },
     "execution_count": 75,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dir_path5"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "id": "bbaebf5a",
   "metadata": {},
   "outputs": [],
   "source": [
    "dir_path6 = os.path.dirname(dir_path5)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "id": "a475d252",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'E:\\\\pycharm_out\\\\yufa'"
      ]
     },
     "execution_count": 77,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dir_path6"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "id": "13a4c7eb",
   "metadata": {},
   "outputs": [],
   "source": [
    "path_test = os.path.join(dir_path6,'test')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "id": "de872f06",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'E:\\\\pycharm_out\\\\yufa\\\\test'"
      ]
     },
     "execution_count": 79,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "path_test"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 90,
   "id": "76af5a4b",
   "metadata": {},
   "outputs": [],
   "source": [
    "os.makedirs(path_test)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 88,
   "id": "7cfd7e79",
   "metadata": {},
   "outputs": [],
   "source": [
    "\n",
    "if os.path.exists(path_test):\n",
    "    dir_path10,dir_name = os.path.split(path_test)\n",
    "    os.makedirs(os.path.join(dir_path10,dir_name+'1'))\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "id": "dd2adbe3",
   "metadata": {},
   "outputs": [],
   "source": [
    "os.startfile('E:\\\\pycharm_out\\\\yufa\\\\test')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "id": "c49d270d",
   "metadata": {},
   "outputs": [],
   "source": [
    "maya_path = r\"C:\\Program Files\\Autodesk\\Maya2018\\bin\\maya.exe\"\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 93,
   "id": "a14f2321",
   "metadata": {},
   "outputs": [],
   "source": [
    "os.startfile(maya_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "id": "e12ef6fd",
   "metadata": {},
   "outputs": [],
   "source": [
    "list_dir = os.listdir(r'E:\\\\pycharm_out\\\\yufa')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "id": "82d780df",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['.idea', 'git_test', 'test']"
      ]
     },
     "execution_count": 95,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "list_dir"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 96,
   "id": "27e50374",
   "metadata": {},
   "outputs": [],
   "source": [
    "os.startfile(r'E:\\\\pycharm_out\\\\yufa')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "id": "4c0cb7f3",
   "metadata": {},
   "outputs": [],
   "source": [
    "list_dir2 = os.listdir(r'E:\\pycharm_out\\yufa\\git_test')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 98,
   "id": "7032fa7a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['.git',\n",
       " '.gitee',\n",
       " '.ipynb_checkpoints',\n",
       " '.vscode',\n",
       " 'def_test.ipynb',\n",
       " 'def_test2.ipynb',\n",
       " 'der.ipynb',\n",
       " 'dict_推导式.ipynb',\n",
       " 'for_test.py',\n",
       " 'for_test02.py',\n",
       " 'lambda_test.ipynb',\n",
       " 'LICENSE',\n",
       " 'logging_test.ipynb',\n",
       " 'main.py',\n",
       " 'os_test.ipynb',\n",
       " 'test.ipynb',\n",
       " 'try.ipynb',\n",
       " 'with open.ipynb',\n",
       " 'with open文件输入输出.ipynb',\n",
       " '字符串格式化.ipynb',\n",
       " '报错.txt',\n",
       " '推导式.ipynb']"
      ]
     },
     "execution_count": 98,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "list_dir2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 100,
   "id": "bd305df1",
   "metadata": {},
   "outputs": [],
   "source": [
    "os.startfile(r'E:\\pycharm_out\\yufa\\git_test')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 101,
   "id": "0c70a540",
   "metadata": {},
   "outputs": [],
   "source": [
    "if '报错.txt' in list_dir2:\n",
    "    os.startfile(os.path.join(r'E:\\pycharm_out\\yufa\\git_test','报错.txt'))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 102,
   "id": "bf8b780a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 102,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.isdir(r'E:\\pycharm_out\\yufa\\git_test')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 103,
   "id": "949a4a7d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 103,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.isdir(maya_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 104,
   "id": "66220bce",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 104,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.isfile(maya_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 105,
   "id": "785b16ca",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 105,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "os.path.isfile(r'E:\\pycharm_out\\yufa\\git_test')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3928f498",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
